package com.qh.yyxt.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityVO {
    private Long id;
    private Integer uid;
    //活动名称
    private String actName;
    //活动方
    private String organizer;
    //申请人
    private String applicant;
    //联系电话
    private String tel;
    //借用地点
    private String place;
    //借用原因
    private String reason;
    //申请时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;
    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    //通过时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime passTime;
    //审核状态(待审批、已通过、未通过)
    private String aprStatus;
    //借用状态(未借出、已借出、部分归还、已归还)
    private String lendStatus;
    //借用物品编号
    private String allThings;
    //未归还物品编号
    private String unReturnThings;
    //已归还物品编号
    private String returnedThings;
    //审批人
    private String approval;
}
